package com.yumeko.myirule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: SpringCloud
 * @description:
 * @author: Zheng Hao
 * @create: 2020-03-08 18:33
 */
@Configuration
public class MySelfRule {
    @Bean
    public IRule myIRule(){
        return new RandomRule();
    }
}
